import request from '@/utils/request'

// 查询雇佣记录列表
export function listHire(query) {
  return request({
    url: '/bussiness/hire/list',
    method: 'get',
    params: query
  })
}

// 查询雇佣记录详细
export function getHire(hireId) {
  return request({
    url: '/bussiness/hire/' + hireId,
    method: 'get'
  })
}

// 新增雇佣记录
export function addHire(data) {
  return request({
    url: '/bussiness/hire',
    method: 'post',
    data: data
  })
}

// 修改雇佣记录
export function updateHire(data) {
  return request({
    url: '/bussiness/hire',
    method: 'put',
    data: data
  })
}

// 删除雇佣记录
export function delHire(hireId) {
  return request({
    url: '/bussiness/hire/' + hireId,
    method: 'delete'
  })
}
